home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5794 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.1 KB  |  57 lines

  1. Newsgroups: comp.sys.amiga.networking,comp.sys.amiga.programmer
  2. Path: yama.mcc.ac.uk!liv!lucs!news
  3. From: fish@csc.liv.ac.uk (S.E. Morris)
  4. Subject: Re: CGI-programming for AWS ?
  5. Sender: news@csc.liv.ac.uk (News Eater)
  6. Message-ID: <DoKFry.Myu@csc.liv.ac.uk>
  7. Date: Wed, 20 Mar 1996 12:23:58 GMT
  8. References: <1686.6645T919T930@vip.cybercity.dk>
  9. Nntp-Posting-Host: fish@jordan.csc.liv.ac.uk
  10. Organization: Computer Science, University of Liverpool, UK
  11. X-Newsreader: knews 0.9.4
  12.  
  13. In article <1686.6645T919T930@vip.cybercity.dk>,
  14. bipsen@vip.cybercity.dk (Brian Ipsen) writes:
  15. >Hello!
  16. >
  17. > When "surfing" on many pages, I often discover many different kind of forms,
  18. >and when I take a look at the HTML-source, they all seem to have an entry
  19. >like this (code from AMD's WWW-site):
  20.  
  21. [snipped...]
  22.  
  23. > I wonder what is happening, when the users clicks on "submit" - I know,
  24. >that the form is handled by the program in /cgi-bin/epdcontest , but
  25. >how does this program get the input from the browser and so on ???
  26.  
  27. Using stdin.  The contents of the form are sent to the CGI program
  28. as one long string, read from the stdin.  The output from a CGI 
  29. program is sent on stdout.
  30.  
  31. This way, any language which can use stdin/stdout can be used as a
  32. CGI script.
  33.  
  34. >
  35. > In general I'm no expert in HTML, I prefer doing this by the Try-And-Error
  36. >principle :-) - But if it cannot be said shortly, are there any C-sourcecode
  37. >for cgi-binaries somewhere (hopefully ANSI C) or do I have to start with
  38. >Perl (I've heard, that many uses Perl).
  39.  
  40. No, C is fine.  The program is run at the server end (unlike, say Java
  41. applets which are run on the client machine) so you will not be able to
  42. get hold of any source code or even the binary.
  43.  
  44. If you plan to write CGI scripts yourself, check first with your
  45. Webmaster, as there are certain *serious* security implications with
  46. running such stuff.  (He/she will probably insist in viewing your
  47. source code before you can use it!)
  48.  
  49. ><tsb> GizmoSoft Productions 
  50. >| bipsen@vip.cybercity.dk |
  51. >|      Brian Ipsen        |
  52. >--
  53. >Amiga2000/A2630/9MB/Oktagon SCSI/Quantum 1.08GB/Toshiba XM5201
  54. >
  55. >
  56.  
  57.